package com.cici.myrule;

import org.springframework.context.annotation.Configuration;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;

@Configuration
public class MySelfRule {
	
	public IRule myRule(){
		//return new RandomRule();  //默认是轮询  我自定义为随机
		return new RandomRule_ZY();
	} 
}
